package protocol;

public class ID {
static int base;
static int dim;
int id;
static public void setBase(int b){
	base = b;
}

static public void setDim(int d){
	dim = d;
}
public ID(int id){
	this.id = id;
}

public int getCubId(){
	return id/base;
}
public int getCycId(){
	return id%base;
}
public String toString(){
	return new String("("+getCubId()+","+getCycId()+")");
}
}
